package Work1;

public class AccountOperate {
    private Account account;

    public AccountOperate(Account account) {
        this.account = account;
    }

    //存钱
    public void saving(double money) {
        account.setMoney(account.getMoney() + money);
    }

    //取钱
    public void withDraw(double money) {
        account.setMoney(account.getMoney() - money);
    }
}
